{% extends "base.html" %}

{% block title %}Event Detail{% endblock %}
{% block url %}http://localhost/events/{{event.id}}{% endblock %}

{% block content %}
<h1>{{event.name|title}}</h1>
<h2>Start Date:</h2>
{{event.start_time}} <br/>
{% if event.start_time|timeuntil == "0 minutes" %}
({{event.start_time|timesince}} ago)
{% else %}
(in {{event.start_time|timeuntil}})
{% endif %}
<h2>End Date:</h2>
{{event.end_time}} <br/>
{% if event.end_time|timeuntil == "0 minutes" %}
({{event.end_time|timesince}} ago)
{% else %}
(in {{event.end_time|timeuntil}})
{% endif %}
<h2>Location:</h2>
{{event.location}}
<h2>Description:</h2>
{{event.description}}
{% endblock %}
